<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html>
<head>

	<title>赋予权限页</title>

</head>
<body>

	<p align="center">
		<h2>赋予权限页</h2>
		<a href="index.html">主页</a>
	</p>
	<form action="disfetch" method="post">
	<table border="1" width="100%">
		<tr>
			<th>权限</th>
		</tr>
		<?php if(is_array($data)): $i = 0; $__LIST__ = $data;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><tr>
				<td>
					<input type="checkbox" value="<?php echo ($vo["id"]); ?>" name="rule_id[]" <?php if(in_array(($vo["id"]), is_array($hasRuleIds)?$hasRuleIds:explode(',',$hasRuleIds))): ?>checked="checked"<?php endif; ?>>|<?php echo (str_repeat("----",$vo["lev"])); echo ($vo["rule_name"]); ?>
				</td>
			</tr><?php endforeach; endif; else: echo "" ;endif; ?>
		<input type="hidden" name="role_id" value="<?php echo ($_GET['id']); ?>">
		<tr>
			<td>
				<input type="submit" value="提交">
				<input type="reset" value="重置">
			</td>
		</tr>
	</table>
	</form>

</body>
</html>